package cn.z2huo.demo.spring.junit5.controller;

import cn.z2huo.demo.spring.junit5.service.simple.SimpleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * @author z2huo
 */
@RestController
public class SimpleController {

    @Autowired
    private SimpleService simpleService;

    @GetMapping("/getName")
    public String getName() {
        return simpleService.getName();
    }

}
